<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Characteristic Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>
    <a name="//apple_ref/swift/Class/Characteristic" class="dashAnchor"></a>
    <a title="Characteristic Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">RxBluetoothKit 7.0.0 Docs</a> (82% documented)</p>
        <p class="header-right"><a href="https://github.com/Polidea/RxBluetoothKit"><img src="../img/gh.png"/>View on GitHub</a></p>
        <p class="header-right">
          <form role="search" action="../search.json">
            <input type="text" placeholder="Search documentation" data-typeahead>
          </form>
        </p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">RxBluetoothKit Reference</a>
        <img id="carat" src="../img/carat.png" />
        Characteristic Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/CentralManager.html">CentralManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Characteristic.html">Characteristic</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Descriptor.html">Descriptor</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Peripheral.html">Peripheral</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/PeripheralManager.html">PeripheralManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/RxBluetoothKitLog.html">RxBluetoothKitLog</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/RxBluetoothKitLog/LogLevel.html">– LogLevel</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ScannedPeripheral.html">ScannedPeripheral</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Service.html">Service</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/BluetoothError.html">BluetoothError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/BluetoothState.html">BluetoothState</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/RxBluetoothKitLogger.html">RxBluetoothKitLogger</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/StartAdvertisingResult.html">StartAdvertisingResult</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/Reactive.html">Reactive</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Functions.html#/s:14RxBluetoothKit2eeoiySbAA0B5ErrorO_ADtF">==(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:14RxBluetoothKit2eeoiySbAA10DescriptorC_ADtF">==(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:14RxBluetoothKit2eeoiySbAA10PeripheralC_ADtF">==(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:14RxBluetoothKit2eeoiySbAA14CharacteristicC_ADtF">==(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:14RxBluetoothKit2eeoiySbAA7ServiceC_ADtF">==(_:_:)</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/CharacteristicIdentifier.html">CharacteristicIdentifier</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/DescriptorIdentifier.html">DescriptorIdentifier</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/Logger.html">Logger</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/ManagerType.html">ManagerType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/ServiceIdentifier.html">ServiceIdentifier</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Structs/AdvertisementData.html">AdvertisementData</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/CentralManagerRestoredState.html">CentralManagerRestoredState</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/PeripheralManagerRestoredState.html">PeripheralManagerRestoredState</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/RestoredState.html">RestoredState</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:14RxBluetoothKit19DisconnectionReasona">DisconnectionReason</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:14RxBluetoothKit32OnWillRestoreCentralManagerStatea">OnWillRestoreCentralManagerState</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:14RxBluetoothKit35OnWillRestorePeripheralManagerStatea">OnWillRestorePeripheralManagerState</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:14RxBluetoothKit18OnWillRestoreStatea">OnWillRestoreState</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:14RxBluetoothKit25RestoredAdvertisementDataa">RestoredAdvertisementData</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>Characteristic</h1>
              <div class="declaration">
                <div class="language">
                  
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Characteristic</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">Characteristic</span><span class="p">:</span> <span class="kt">Equatable</span></code></pre>

                </div>
              </div>
            <p>Characteristic is a class implementing ReactiveX which wraps CoreBluetooth functions related to interaction with <a href="https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBCharacteristic_Class/">CBCharacteristic</a></p>

              <div class="slightly-smaller">
                <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L6-L180">Show on GitHub</a>
              </div>
          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC14characteristicSo16CBCharacteristicCvp"></a>
                    <a name="//apple_ref/swift/Property/characteristic" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC14characteristicSo16CBCharacteristicCvp">characteristic</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Intance of CoreBluetooth characteristic class</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">characteristic</span><span class="p">:</span> <span class="kt">CBCharacteristic</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L8">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC7serviceAA7ServiceCvp"></a>
                    <a name="//apple_ref/swift/Property/service" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC7serviceAA7ServiceCvp">service</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Service which contains this characteristic</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">service</span><span class="p">:</span> <span class="kt"><a href="../Classes/Service.html">Service</a></span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L11">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC5value10Foundation4DataVSgvp"></a>
                    <a name="//apple_ref/swift/Property/value" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC5value10Foundation4DataVSgvp">value</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Current value of characteristic. If value is not present - it&rsquo;s <code>nil</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">value</span><span class="p">:</span> <span class="kt">Data</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L14-L16">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC4uuidSo6CBUUIDCvp"></a>
                    <a name="//apple_ref/swift/Property/uuid" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC4uuidSo6CBUUIDCvp">uuid</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The Bluetooth UUID of the <code>Characteristic</code> instance.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">uuid</span><span class="p">:</span> <span class="kt">CBUUID</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L19-L21">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC11isNotifyingSbvp"></a>
                    <a name="//apple_ref/swift/Property/isNotifying" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC11isNotifyingSbvp">isNotifying</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Flag which is set to true if characteristic is currently notifying</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isNotifying</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L24-L26">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC10propertiesSo26CBCharacteristicPropertiesVvp"></a>
                    <a name="//apple_ref/swift/Property/properties" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC10propertiesSo26CBCharacteristicPropertiesVvp">properties</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Properties of characteristic. For more info about this refer to <a href="https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBCharacteristic_Class/#//apple_ref/c/tdef/CBCharacteristicProperties">CBCharacteristicProperties</a></p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">properties</span><span class="p">:</span> <span class="kt">CBCharacteristicProperties</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L29-L31">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC11descriptorsSayAA10DescriptorCGSgvp"></a>
                    <a name="//apple_ref/swift/Property/descriptors" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC11descriptorsSayAA10DescriptorCGSgvp">descriptors</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Value of this property is an array of <code><a href="../Classes/Descriptor.html">Descriptor</a></code> objects. They provide more detailed information about characteristics value.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">descriptors</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Classes/Descriptor.html">Descriptor</a></span><span class="p">]?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L34-L36">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC19discoverDescriptors0A5Swift17PrimitiveSequenceVyAE11SingleTraitOSayAA10DescriptorCGGyF"></a>
                    <a name="//apple_ref/swift/Method/discoverDescriptors()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC19discoverDescriptors0A5Swift17PrimitiveSequenceVyAE11SingleTraitOSayAA10DescriptorCGGyF">discoverDescriptors()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Function that triggers descriptors discovery for characteristic.</p>

<p>Observable can ends with following errors:</p>

<ul>
<li><code>BluetoothError.descriptorsDiscoveryFailed</code></li>
<li><code>BluetoothError.peripheralDisconnected</code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO9destroyedyA2CmF">BluetoothError.destroyed</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO20bluetoothUnsupportedyA2CmF">BluetoothError.bluetoothUnsupported</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO21bluetoothUnauthorizedyA2CmF">BluetoothError.bluetoothUnauthorized</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO19bluetoothPoweredOffyA2CmF">BluetoothError.bluetoothPoweredOff</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO23bluetoothInUnknownStateyA2CmF">BluetoothError.bluetoothInUnknownState</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO18bluetoothResettingyA2CmF">BluetoothError.bluetoothResetting</a></code></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">discoverDescriptors</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Single</span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Classes/Descriptor.html">Descriptor</a></span><span class="p">]</span><span class="o">&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p><code>Single</code> that emits <code>next</code> with array of <code><a href="../Classes/Descriptor.html">Descriptor</a></code> instances, once they&rsquo;re discovered.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L60-L62">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC12observeWrite0A5Swift10ObservableCyACGyF"></a>
                    <a name="//apple_ref/swift/Method/observeWrite()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC12observeWrite0A5Swift10ObservableCyACGyF">observeWrite()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Function that allow to observe writes that happened for characteristic.</p>

<p>Observable can ends with following errors:</p>

<ul>
<li><code>BluetoothError.characteristicWriteFailed</code></li>
<li><code>BluetoothError.peripheralDisconnected</code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO9destroyedyA2CmF">BluetoothError.destroyed</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO20bluetoothUnsupportedyA2CmF">BluetoothError.bluetoothUnsupported</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO21bluetoothUnauthorizedyA2CmF">BluetoothError.bluetoothUnauthorized</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO19bluetoothPoweredOffyA2CmF">BluetoothError.bluetoothPoweredOff</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO23bluetoothInUnknownStateyA2CmF">BluetoothError.bluetoothInUnknownState</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO18bluetoothResettingyA2CmF">BluetoothError.bluetoothResetting</a></code></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">observeWrite</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Characteristic</span><span class="o">&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p><code>Observable</code> that emits <code>next</code> with <code>Characteristic</code> instance every time when write has happened.
It&rsquo;s <strong>infinite</strong> stream, so <code>.complete</code> is never called.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L77-L79">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC18observeNotifyValue0A5Swift10ObservableCyACGyF"></a>
                    <a name="//apple_ref/swift/Method/observeNotifyValue()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC18observeNotifyValue0A5Swift10ObservableCyACGyF">observeNotifyValue()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Function that allows to know the exact time, when isNotyfing value has changed on a characteristic.</p>

<p>Observable can ends with following errors:</p>

<ul>
<li><code>BluetoothError.characteristicSetNotifyValueFailed</code></li>
<li><code>BluetoothError.peripheralDisconnected</code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO9destroyedyA2CmF">BluetoothError.destroyed</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO20bluetoothUnsupportedyA2CmF">BluetoothError.bluetoothUnsupported</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO21bluetoothUnauthorizedyA2CmF">BluetoothError.bluetoothUnauthorized</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO19bluetoothPoweredOffyA2CmF">BluetoothError.bluetoothPoweredOff</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO23bluetoothInUnknownStateyA2CmF">BluetoothError.bluetoothInUnknownState</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO18bluetoothResettingyA2CmF">BluetoothError.bluetoothResetting</a></code></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">observeNotifyValue</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Characteristic</span><span class="o">&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p><code>Observable</code> emitting <code>Characteristic</code> when isNoytfing value has changed.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L94-L96">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC10writeValue_4type0A5Swift17PrimitiveSequenceVyAF11SingleTraitOACG10Foundation4DataV_So25CBCharacteristicWriteTypeVtF"></a>
                    <a name="//apple_ref/swift/Method/writeValue(_:type:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC10writeValue_4type0A5Swift17PrimitiveSequenceVyAF11SingleTraitOACG10Foundation4DataV_So25CBCharacteristicWriteTypeVtF">writeValue(_:<wbr>type:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Function that triggers write of data to characteristic. Write is called after subscribtion to <code>Observable</code> is made.
Behavior of this function strongly depends on <a href="https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBPeripheral_Class/#//apple_ref/swift/enum/c:@E@CBCharacteristicWriteType">CBCharacteristicWriteType</a>, so be sure to check this out before usage of the method.</p>

<ul>
<li><p><code>withResponse</code> -  <code>Observable</code> emits <code>next</code> with <code>Characteristic</code> instance write was confirmed without any errors.
If any problem has happened, errors are emitted.</p></li>
<li><p><code>withoutResponse</code> - <code>Observable</code> emits <code>next</code> with <code>Characteristic</code> instance once write was called.
Result of this call is not checked, so as a user you are not sure
if everything completed successfully. Errors are not emitted</p></li>
</ul>

<p>Observable can ends with following errors:</p>

<ul>
<li><code>BluetoothError.characteristicWriteFailed</code></li>
<li><code>BluetoothError.peripheralDisconnected</code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO9destroyedyA2CmF">BluetoothError.destroyed</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO20bluetoothUnsupportedyA2CmF">BluetoothError.bluetoothUnsupported</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO21bluetoothUnauthorizedyA2CmF">BluetoothError.bluetoothUnauthorized</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO19bluetoothPoweredOffyA2CmF">BluetoothError.bluetoothPoweredOff</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO23bluetoothInUnknownStateyA2CmF">BluetoothError.bluetoothInUnknownState</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO18bluetoothResettingyA2CmF">BluetoothError.bluetoothResetting</a></code></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">writeValue</span><span class="p">(</span><span class="n">_</span> <span class="nv">data</span><span class="p">:</span> <span class="kt">Data</span><span class="p">,</span> <span class="nv">type</span><span class="p">:</span> <span class="kt">CBCharacteristicWriteType</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Single</span><span class="o">&lt;</span><span class="kt">Characteristic</span><span class="o">&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>data</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p><code>Data</code> that&rsquo;ll be written to the <code>Characteristic</code></p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>type</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Type of write operation. Possible values: <code>.withResponse</code>, <code>.withoutResponse</code></p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p><code>Single</code> whose emission depends on <code>CBCharacteristicWriteType</code> passed to the function call.
Behavior is following:</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L120-L122">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC18observeValueUpdate0A5Swift10ObservableCyACGyF"></a>
                    <a name="//apple_ref/swift/Method/observeValueUpdate()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC18observeValueUpdate0A5Swift10ObservableCyACGyF">observeValueUpdate()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Function that allow to observe value updates for <code>Characteristic</code> instance.</p>

<p>Observable can ends with following errors:</p>

<ul>
<li><code>BluetoothError.characteristicReadFailed</code></li>
<li><code>BluetoothError.peripheralDisconnected</code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO9destroyedyA2CmF">BluetoothError.destroyed</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO20bluetoothUnsupportedyA2CmF">BluetoothError.bluetoothUnsupported</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO21bluetoothUnauthorizedyA2CmF">BluetoothError.bluetoothUnauthorized</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO19bluetoothPoweredOffyA2CmF">BluetoothError.bluetoothPoweredOff</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO23bluetoothInUnknownStateyA2CmF">BluetoothError.bluetoothInUnknownState</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO18bluetoothResettingyA2CmF">BluetoothError.bluetoothResetting</a></code></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">observeValueUpdate</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Characteristic</span><span class="o">&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p><code>Observable</code> that emits <code>Next</code> with <code>Characteristic</code> instance every time when value has changed.
It&rsquo;s <strong>infinite</strong> stream, so <code>.complete</code> is never called.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L137-L139">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC9readValue0A5Swift17PrimitiveSequenceVyAE11SingleTraitOACGyF"></a>
                    <a name="//apple_ref/swift/Method/readValue()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC9readValue0A5Swift17PrimitiveSequenceVyAE11SingleTraitOACGyF">readValue()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Function that triggers read of current value of the <code>Characteristic</code> instance.
Read is called after subscription to <code>Observable</code> is made.</p>

<p>Observable can ends with following errors:</p>

<ul>
<li><code>BluetoothError.characteristicReadFailed</code></li>
<li><code>BluetoothError.peripheralDisconnected</code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO9destroyedyA2CmF">BluetoothError.destroyed</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO20bluetoothUnsupportedyA2CmF">BluetoothError.bluetoothUnsupported</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO21bluetoothUnauthorizedyA2CmF">BluetoothError.bluetoothUnauthorized</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO19bluetoothPoweredOffyA2CmF">BluetoothError.bluetoothPoweredOff</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO23bluetoothInUnknownStateyA2CmF">BluetoothError.bluetoothInUnknownState</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO18bluetoothResettingyA2CmF">BluetoothError.bluetoothResetting</a></code></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">readValue</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Single</span><span class="o">&lt;</span><span class="kt">Characteristic</span><span class="o">&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p><code>Single</code> which emits <code>next</code> with given characteristic when value is ready to read.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L154-L156">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14RxBluetoothKit14CharacteristicC36observeValueUpdateAndSetNotification0A5Swift10ObservableCyACGyF"></a>
                    <a name="//apple_ref/swift/Method/observeValueUpdateAndSetNotification()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14RxBluetoothKit14CharacteristicC36observeValueUpdateAndSetNotification0A5Swift10ObservableCyACGyF">observeValueUpdateAndSetNotification()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup characteristic notification in order to receive callbacks when given characteristic has been changed.
Returned observable will emit <code>Characteristic</code> on every notification change.
It is possible to setup more observables for the same characteristic and the lifecycle of the notification will be shared among them.</p>

<p>Notification is automaticaly unregistered once this observable is unsubscribed</p>

<p>This is <strong>infinite</strong> stream of values.</p>

<p>Observable can ends with following errors:</p>

<ul>
<li><code>BluetoothError.characteristicReadFailed</code></li>
<li><code>BluetoothError.peripheralDisconnected</code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO9destroyedyA2CmF">BluetoothError.destroyed</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO20bluetoothUnsupportedyA2CmF">BluetoothError.bluetoothUnsupported</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO21bluetoothUnauthorizedyA2CmF">BluetoothError.bluetoothUnauthorized</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO19bluetoothPoweredOffyA2CmF">BluetoothError.bluetoothPoweredOff</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO23bluetoothInUnknownStateyA2CmF">BluetoothError.bluetoothInUnknownState</a></code></li>
<li><code><a href="../Enums/BluetoothError.html#/s:14RxBluetoothKit0B5ErrorO18bluetoothResettingyA2CmF">BluetoothError.bluetoothResetting</a></code></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">observeValueUpdateAndSetNotification</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Characteristic</span><span class="o">&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p><code>Observable</code> emitting <code>next</code> with <code>Characteristic</code> when given characteristic has been changed.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/Polidea/RxBluetoothKit/tree/7.0.0/Source/Characteristic.swift#L177-L179">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2021 <a class="link" href="https://polidea.com" target="_blank" rel="external">Polidea</a>. All rights reserved. (Last updated: 2021-02-10)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
